/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package comandaXM.classes.manteniment.proveidor;

/**
 *
 * @author xmarti
 */
public class Contacte {
    private int id; 
    private String nom;
    private String telefon1; 
    private String telefon2; 
    private String email; 
    private String fax; 
    private String observacions; 
    private CentreProveidor centre; 
    private boolean actiu; 
    
    public Contacte() {
        this.actiu= true; 
    }
    public Contacte(int id,String nom, String telefon, String email, String fax, boolean actiu ){
        this.id=id; 
        this.nom=nom; 
        this.telefon1 = telefon; 
        this.email= email; 
        this.fax= fax; 
        this.actiu= actiu;         
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getNom() {
        return nom;
    }

    public void setNom(String nom) {
        this.nom = nom;
    }

    public String getTelefon1() {
        return telefon1;
    }

    public void setTelefon1(String telefon) {
        this.telefon1 = telefon;
    }
    public String getTelefon2() {
        return telefon2;
    }

    public void setTelefon2(String telefon) {
        this.telefon2 = telefon;
    }
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    public String getObservacions() {
        return observacions;
    }

    public void setObservacions(String observacions) {
        this.observacions = observacions;
    }

    public boolean isActiu() {
        return actiu;
    }

    public void setActiu(boolean actiu) {
        this.actiu = actiu;
    }

    public CentreProveidor getCentre() {
        return centre;
    }

    public void setCentre(CentreProveidor centre) {
        this.centre = centre;
    }
    @Override
    public String toString (){
        return this.nom; 
    }
    public String toStringCentre(){
        return centre.toString() + " (" + this.nom +")"; 
    }
   
    
    
}
